///学校年级-加载-请求
class SchoolGradeReq {
  final String schoolId;
  final int? stage;

  const SchoolGradeReq({
    required this.schoolId,
    this.stage,
  });

  Map<String, dynamic> toMap() => {'stage': stage};
}

///学校年级-加载-响应
class SchoolGradeRes {
  final String val, label;
  final int seq;

  const SchoolGradeRes({
    required this.val,
    required this.label,
    required this.seq,
  });

  factory SchoolGradeRes.fromMap(final Map<String, dynamic> map) =>
      SchoolGradeRes(
        val: map['val'] ?? '',
        label: map['label'] ?? '',
        seq: map['seq'] ?? 0,
      );
}
